<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:ui="http://java.sun.com/jsf/facelets">
    
    <h:head>
        <title>IGNORED</title>
        <h:messages errorClass="errors" layout="list" showDetail="true" showSummary="false"/>
    </h:head>
    <h:body>
        <ui:composition template="/WEB-INF/Templates/Template.xhtml">
            <ui:define name="content">
                <h3 align="center">#{tekster.Overskrift7}</h3>
                <h:form>
                    <div align="center">
                        <h:panelGrid columns="3" border="0">
                            <h:column>
                                <h:outputText value="#{tekster.VelgLop}"/>
                            </h:column>
                            <h:column>
                                <h:selectOneListbox size="5" required="true" id="velgLop" requiredMessage="#{tekster.req_lop}" value="#{rb.resultatet.lop}" converter="#{LopConverter}">
                                <f:selectItems value="#{rb.lopene.finnAlleLopSelect()}" />
                            </h:selectOneListbox>
                            </h:column>
                            <h:column>
                                <h:message for="velgLop" errorClass="errors"/>
                            </h:column>
                            <h:column>
                                <h:outputText value="#{tekster.SkrivinnStartnummer}"/>
                            </h:column>
                            <h:column>
                                <h:inputText value="#{rb.resultatet.startNr}" required="true" id="startnr" converterMessage="#{tekster.val_startnr}" validatorMessage="#{tekster.val_startnr}" requiredMessage="#{tekster.req_startnummer}"/>
                            </h:column>
                            <h:column>
                                <h:message for="startnr" errorClass="errors"/>
                            </h:column>
                            <h:column>
                                <h:outputText value="#{tekster.skrivinntid}"/>
                            </h:column>
                            <h:column>
                                <h:inputText value="#{rb.resultatet.tid}" converter="#{tid}" required="true" id="skrivtid" requiredMessage="#{tekster.req_tidmangler}"/>
                            </h:column>
                            <h:column>
                                <h:message for="skrivtid" errorClass="errors"/>
                            </h:column>
                            <h:column>
                                <h:commandButton value="#{tekster.Tilbake}" action="/index?faces-redirect=true" immediate="true"/>
                            </h:column>
                            <h:column>
                                <h:commandButton value="#{tekster.Send}" action="#{rb.registrerResultat()}"/>
                            </h:column>
                        </h:panelGrid>
                    </div>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>